package com.jy.event.dao;


import com.jy.event.domain.CouponInstance;
import com.jy.event.domain.CouponInstanceStatus;
import org.springframework.data.repository.CrudRepository;

import java.util.Date;
import java.util.List;

/**
 * Created by lihu on 2017/11/17.
 */
public interface CouponInstanceDao extends CrudRepository<CouponInstance, String> {


    List<CouponInstance> findByStautsAndEndTimeBetween(CouponInstanceStatus stauts, Date start, Date end);


}
